//
//  XKMainNavigationController.m
//  XKJY
//
//  Created by xuyaguang on 2017/1/10.
//  Copyright © 2017年 xiaokang100. All rights reserved.
//

#import "XKMainNavigationController.h"

@interface XKMainNavigationController ()

@end

@implementation XKMainNavigationController

- (void)viewDidLoad {
    [super viewDidLoad];
    [self setAppearance];
}

// 设置navigationBar的appearance
- (void) setAppearance {
    
    UINavigationBar *bar = [UINavigationBar appearance];
    // Titlte颜色和字体大小
    [bar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
    
    // 背景图片
    [bar setBackgroundImage:[UIImage imageWithColor:UIColorFromRGB(0xFD5353) size:CGSizeMake(Main_Width, 64)] forBarMetrics:UIBarMetricsDefault];
    // 两侧Item颜色
    [bar setTintColor:[UIColor whiteColor]];
    
    // 底部横线
    [bar setShadowImage:[[UIImage alloc] init]];
    
    // 状态栏白色
    [bar setBarStyle:UIBarStyleBlack];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}



@end
